﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
	public class tb_AdminService
	{
		private static readonly tb_AdminDAL db = new tb_AdminDAL();
		#region[tb_Admin_GetById]
		public static DataTable tb_Admin_GetById(tb_AdminInfo Data)
		{
			return db.tb_Admin_GetById(Data);
		}
		#endregion
        #region[tb_Admin_CheckLogin]
        public static DataTable tb_Admin_CheckLogin(string Username,string Password)
        {
            return db.tb_Admin_CheckLogin(Username, Password);
        }
        #endregion
		#region[tb_Admin_GetByAll]
		public static DataTable tb_Admin_GetByAll()
		{
			return db.tb_Admin_GetByAll();
		}
		#endregion
		#region[tb_Admin_GetByTop]
		public static DataTable tb_Admin_GetByTop(string Top, string Where, string Order)
		{
			return db.tb_Admin_GetByTop(Top, Where, Order);}
		#endregion
		#region[tb_Admin_Insert]
		public static void tb_Admin_Insert(tb_AdminInfo Data)
		{
			 db.tb_Admin_Insert(Data);
		}
		#endregion
		#region[tb_Admin_Update]
		public static void tb_Admin_Update(tb_AdminInfo Data)
		{
			 db.tb_Admin_Update(Data);
		}
		#endregion
		#region[tb_Admin_Delete]
		public static void tb_Admin_Delete(string Id)
		{
			 db.tb_Admin_Delete(Id);
		}
		#endregion
	}
}